/**
 * (created at 2011-1-21)
 */
package qiushuo.mysqlparser.ast.expression.primary.literal;

import qiushuo.mysqlparser.ast.expression.primary.PrimaryExpression;
import qiushuo.mysqlparser.generator.SQLType;

/**
 * @author <a href="mailto:QiuShuo1985@gmail.com">QIU Shuo</a>
 */
public class LiteralBoolean extends PrimaryExpression {
    private final boolean value;

    public LiteralBoolean(boolean value) {
        this.value = value;
    }

    @Override
    public String generateSql(SQLType type) {
        return value ? "TRUE" : "FALSE";
    }
}
